package com.neusoft.service.impl;

import com.neusoft.mapper.VipMapper;
import com.neusoft.po.Vip;
import com.neusoft.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VipServiceImpl implements VipService {

    @Autowired
    private VipMapper vipMapper;

    @Override
    public int getVipById(String userId) {
        return vipMapper.getVipById(userId);
    }

    @Override
    public int saveVip(String userId) {
        return vipMapper.saveVip(userId);
    }

    @Override
    public int getCouponById(String userId, String vipId){
        return vipMapper.getCouponById(userId, vipId);
    }

    public int updateCuponQt(Vip vip){ return vipMapper.updateCuponQt(vip);}
}
